package com.wshl.aijiuunion.controller.fragment;

import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.blankj.utilcode.util.LogUtils;
import com.wshl.aijiuunion.R;
import com.wshl.aijiuunion.utils.BarUtils;

/**
 * Created buy 风凊扬 on 2019/10/23 0023
 */
public class CenterFragment extends TabFragment {
    @Override
    public void initImmersionBar() {

        BarUtils.setStatusBarForFragment(this);
    }

    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        LogUtils.i("centerfragment--oncreate");
    }

    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {

        LogUtils.i("centerfragment--onCreateView");
        return inflater.inflate(R.layout.fragment_center, container, false);

    }

    @Override
    public void onActivityCreated(@Nullable Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        LogUtils.i("centerfragment--onActivityCreated");
    }

    @Override
    public void onHiddenChanged(boolean hidden) {
        super.onHiddenChanged(hidden);
        if (!hidden) {

            LogUtils.i("centerfragment--页面显示");
        }
    }
}
